package com.xinpu.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinpu.mapper.DailyMapper;
import com.xinpu.service.DailyService;
import com.xinpu.vo.DailyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DailyServiceImpl implements DailyService {
    @Autowired
    private DailyMapper dailyMapper;

    @Override
  public IPage<DailyVo> list(String startTime, String overTime, String name, Integer page, Integer size, Integer status,String tenantId) {
        return dailyMapper.list(startTime, overTime, name, new Page<>(page, size),status, tenantId);
    }


    @Override
    public DailyVo findById(Integer id) {
        return dailyMapper.findById(id);
    }
}
